

//content部分
.body-content{
    margin-top: 20px;
    >div{
        margin-bottom: 30px;
        .left-content{
            width: 900px;
            display: inline-block;
            h2{
                margin-bottom: 15px;
                padding-right: 20px;
                .title{
                    display: inline-block;
                    .icon {
                        margin-right: 15px;
                    }
                    span{
                        vertical-align: -4px;
                        font-size: 24px;
                    }
                }
                .detail{
                    float: right;
                    span{
                        display: inline-block;
                        width: 57px;
                        height: 19px;
                        margin-top: 1px;
                        margin-right: 15px;
                        border: 1px solid #dbdbdb;
                        border-radius: 5px;
                        vertical-align: middle;
                        color: #999999;
                        font-size: 12px;
                        text-align: center;
                        line-height: 20px;
                        cursor: pointer;
                        i{
                            margin-right: 5px;
                        }
                    }
                    a{
                        font-size: 14px;
                        color: #42bdeb;
                        i{
                            margin-left: 10px;
                            font-size: 22px;
                            vertical-align: -2px;
                        }
                    }
                }
                .menu{
                    display: inline-block;
                    margin-left: 25px;
                    li{
                        position: relative;
                        display: inline-block;
                        font-size: 14px;
                        color: #1E1E1E;
                        margin-right: 28px;
                        border-bottom: 3px solid transparent;
                        cursor: pointer;
                        &:hover{
                            color: #42bdeb;
                            // border-bottom-color: #42bdeb;
                            // &:after{
                            //     content: "";
                            //     position: absolute;
                            //     bottom: 0;
                            //     left: 50%;
                            //     width: 0;
                            //     height: 0;
                            //     margin-left: -3px;
                            //     border-width: 3px;
                            //     border-style: solid;
                            //     border-color: transparent transparent #42bdeb transparent;
                            // }
                        }
                    }
                    li.active{
                        color: #42bdeb;
                        border-bottom-color: #42bdeb;
                        &:after{
                            content: "";
                            position: absolute;
                            bottom: 0;
                            left: 50%;
                            width: 0;
                            height: 0;
                            margin-left: -3px;
                            border-width: 3px;
                            border-style: solid;
                            border-color: transparent transparent #42bdeb transparent;
                        }
                    }
                }
            }
            .list{
                margin-bottom: 18px;
                li{
                    display: inline-block;
                    width: 160px;
                    height: 162px;
                    margin-right: 20px;
                    overflow: hidden;
                    border-radius: 4px;
                    will-change:contents;
                    &:hover{
                        .description{
                            height: auto;
                            color: #42bdeb;
                            text-overflow: initial;
                            white-space: normal;
                        }
                        .img-contet{
                            &:before,&::after{
                                width: 100%;
                                height: 100%;
                            }
                            &:after {
                                border-top-color: #42bdeb;
                                border-right-color: #42bdeb;
                                transition: width 0.2s ease-out,
                                            height 0.2s ease-out 0.2s;
                            }
                            &:before{
                                border-bottom-color: #42bdeb;
                                border-left-color: #42bdeb;
                                transition: width 0.2s ease-out,
                                            height 0.2s ease-out 0.2s;
                            }
                            .info{
                                transform: translateY(0);
                            }
                        }
                    }
                    .img-contet{
                        position: relative;
                        height: 100px;
                        margin-bottom: 10px;
                        overflow: hidden;
                        // border: 2px solid transparent;
                        &:before{
                            display: block;
                            position: absolute;
                            content: '';
                            bottom: 0;
                            right: 0;
                            width: 0;
                            height: 0;
                            transition: border-color 0s ease-in 0.4s, width 0.2s ease-in 0.2s, height 0.2s ease-in;
                            border: 2px solid transparent;
                            box-sizing: border-box;
                            border-radius: 4px;
                        }
                        &:after{
                            display: block;
                            position: absolute;
                            content: '';
                            top: 0;
                            left: 0;
                            width: 0;
                            height: 0;
                            transition: border-color 0s ease-in 0.4s, width 0.2s ease-in 0.2s, height 0.2s ease-in;
                            border: 2px solid transparent;
                            box-sizing: border-box;
                            border-radius: 4px;
                        }
                        >img{
                            width: 100%;
                            min-height: 100px;
                            border-radius: 4px;
                        }
                        .info{
                            display: flex;
                            align-items: center;
                            height: 30px;
                            position: absolute;
                            right: 0;
                            bottom: 0;
                            left: 0;
                            transition: all .2s ease .2s;
                            transform: translateY(30px);
                            background-color: #42bdeb;
                            border-radius:  0 0 4px 4px;
                            img{
                                width: 20px;
                                height: 20px;
                                margin: 0 5px;
                            }
                            span{
                                font-size: 12px;
                                color: #FFF;
                            }
                        }
                    }
                    .description{
                        width: 100%;
                        height: auto;
                        margin-bottom: 5px;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        white-space: nowrap;
                        transition: all .2s ease;
                        font-size: 12px;
                        color: #1E1E1E;
                    }
                }
            }
            .resources{
                width: 880px;
                height: 120px;
                img{
                    width: 100%;
                    height: 100%;
                }
            }
        }
        .right-content, .ranking-content{
            display: inline-block;
            vertical-align: top;
            width: 20%;
            h2{
                margin-bottom: 21px;
                padding-top: 5px;
                font-size: 20px;
                color: #1E1E1E;
                .ranking{
                    display: inline-block;
                    margin-left: 9px;
                    font-size: 16px;
                    color: #929292;
                }
                .data{
                    float: right;
                    margin-top: 6px;
                    font-size: 14px;
                    color: #42beec;
                    span{
                        display: inline-block;
                        margin: 0 5px;
                        opacity: .5;
                        border-bottom: 3px solid transparent;
                        cursor: pointer;
                        &:last-child{
                            margin: 0;
                        }
                    }
                    span.active{
                        position: relative;
                        opacity: 1;
                        border-bottom-color: #42bdeb;
                        &:after{
                            content: "";
                            position: absolute;
                            bottom: 0;
                            left: 50%;
                            width: 0;
                            height: 0;
                            margin-left: -3px;
                            border-width: 3px;
                            border-style: solid;
                            border-color: transparent transparent #42bdeb transparent;
                        }
                    }
                }
            }
            .list{
                li{
                    margin-bottom: 7px;
                    &:hover h6{
                      color: #42bdeb;
                    }
                    &:hover p{
                      color: #42bdeb;
                    }
                    dl{
                        dt{
                            position: relative;
                            float: left;
                            width: 89px;
                            height: 62px;
                            img{
                                width: 100%;
                                height: 100%;
                            }
                            &:before{
                                content: attr(data-num);
                                position: absolute;
                                top: 0;
                                left: 0;
                                width: 16px;
                                height: 16px;
                                background-color: #E9573F;
                                border-radius: 0 0 5px 0;
                                color: #FFF;
                                font-size: 12px;
                                line-height: 16px;
                                text-align: center;
                            }
                        }
                        dd{
                            display: block;
                            font-size: 12px;
                            padding-left: 97px;
                            h6{
                                font-size: 12px;
                                display: -webkit-box;
                                -webkit-box-orient: vertical;
                                -webkit-line-clamp: 2;
                                overflow: hidden;
                                color: #1E1E1E;
                            }
                            div{
                                color: #D7D7D7;
                            }
                        }
                    }
                    p{
                        color: #1E1E1E;
                        font-size: 12px;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        white-space: nowrap;
                       
                        &:before{
                            content: attr(data-num);
                            display: inline-block;
                            width: 16px;
                            height: 16px;
                            margin-right: 10px;
                            background-color: #E9573F;
                            border-radius: 0 0 5px 0;
                            color: #FFF;
                            font-size: 12px;
                            line-height: 16px;
                            text-align: center;
                        }
                    }
                }
            }
            .contribution-list{
                a{
                    display: block;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    color: #1E1E1E;
                    font-size: 14px;
                    &:before{
                        display: inline-block;
                        content: attr(data-num);
                        width: 17px;
                        height: 17px;
                        margin-right: 13px;
                        background-color: #42bdeb;
                        color: #FFF;
                        font-size: 12px;
                        text-align: center;
                        line-height: 18px;
                        border-radius: 5px;
                        vertical-align: -2px;
                    }
                    img{
                        width: 25px;
                        height: 25px;
                        margin-right: 10px;
                        border-radius: 50%;
                    }
                    span{
                        vertical-align: -2px;
                    }
                    &:hover{
                        color: #42bdeb;
                    }
                }
            }
        }
        .contribution{
            h2{
                margin-bottom: 13px;
            }
        }
    }
    //推荐
    .recommend{
        .swiper-container{
            display: inline-block;
            width: 440px;
            height: 220px;
            margin: 0 20px 0 0;
        }
        .recommend-right{
            float: right;
            width: 700px;
            li{
                position: relative;
                display: inline-block;
                width: 160px;
                height: 100px;
                margin: 0 10px;
                margin-bottom: 15px;
                transition: all .25s ease;
                box-shadow: 0 3px 7px 0 #DAD8D8;
                will-change:contents;
                border-radius: 4px;
                overflow: hidden;
                cursor: pointer;
                &:nth-child(1),&:nth-child(5){
                    margin-left: 0;
                }
                &:nth-child(4n){
                    margin-right: 0;
                }
                img{
                    width: 100%;
                    border-radius: 4px;
                }
                p{
                    position: absolute;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    height: 25px;
                    padding-left: 10px;
                    background: linear-gradient(rgba(255,255,255,.1),rgba(0,0,0,.5));
                    line-height: 25px;
                    color: #FFF;
                    font-size: 12px;
                    text-align: left;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                }
                &:hover{
                    transform: translate(-5px,-10px);
                    box-shadow: 10px 10px 6px 0 #DAD8D8;
                }
            }
        }
    }
    //学部
    .division{
        .title{
            img{
                vertical-align: -12px;
            }
        }
    }
    //书包
    .school-bag{
        .type{
            position: absolute;
            top: 0;
            right: 0;
            color: #FFF;
            font-size: 12px;
        }
        .left-content{
            .type{
                padding: 5px 10px;
                background-color: #4899e8;
                border-radius: 0 5px 0 5px;
            }
        }
        .right-content{
            .type{
                padding: 2.5px 5px;
                background-color: #f1cc2c;
            }
        }
        .img-contet{
            .price-nums{
                position: absolute;
                left: 0;
                right: 0;
                bottom: 0px;
                display: flex;
                padding: 0 8px 5px;
                justify-content: space-between;
                align-items: flex-end;
                height: 35px;
                color: #FFF;
                font-size: 12px;
                background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.8));
                border-radius: 0 0 5px 5px;
            }
        }

    }
}
